package com.syezon.wifikey.msg.info;

import android.support.annotation.NonNull;

import com.hodanet.appadvplatclient.ad.AdInfo;


public class MsgInfo implements Comparable<MsgInfo> {
    public static final int TYPE_FEED_BACK = 1;
    public static final int TYPE_ABOUT = 2;
    public static final int TYPE_AD = 3;
    public static final int TYPE_AGREEMENT = 4;
    public static final int TYPE_PRIVACY = 5;
    public static final int TYPE_GRADE = 6;

    public static final int ORDER_FEED_BACK = 1;
    public static final int ORDER_ABOUT = 3;
    public static final int ORDER_AGREEMENT = 4;
    public static final int ORDER_PRIVACY = 5;
    public static final int ORDER_GRADE = 6;
    private int type;
    private int resId;
    private String title;
    private AdInfo adInfo;
    private boolean isRead;
    private Integer order = 0;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getResId() {
        return resId;
    }

    public void setResId(int resId) {
        this.resId = resId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public AdInfo getAdInfo() {
        return adInfo;
    }

    public void setAdInfo(AdInfo adInfo) {
        this.adInfo = adInfo;
    }

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean read) {
        isRead = read;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    @Override
    public int compareTo(@NonNull MsgInfo o) {
        return order.compareTo(o.getOrder());
    }
}
